<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import ="java.util.Date" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="<%=basePath %>css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath %>js/jquery.js"></script>
<script type="text/javascript" src="<%=basePath %>js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="<%=basePath %>js/select-ui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>editor/kindeditor.js"></script> 
<script type="text/javascript"> 
  function oWorkPerformDel(scanLog){  
		// alert("scanLog="+scanLog);
		if (scanLog == 1) {
		    var ids="";
		    var $chkBoxes = $('#table1').find('input:checked');   //找到被选中的checkbox集
		    if ($chkBoxes.length == 0) {         //如果不勾选弹出警告框
		      alert('请至少选择一个数据集');
		      return false;
		    }
		     //遍历被选中的checkbox集
		    $($chkBoxes).each(function () { 
		      ids +=$(this).attr('data-id')+",";
		    })
			 if(confirm("删除年度工作业绩，您确定要删除吗？"))
				// alert(ids);
			window.location="<%=basePath%>deleteOther?keys="+ids+"&scanLog="+scanLog; 
		}else if(scanLog == 2){
			
			 var ids="";
			    var $chkBoxes = $('#table2').find('input:checked');   //找到被选中的checkbox集
			    if ($chkBoxes.length == 0) {         //如果不勾选弹出警告框
			      alert('请至少选择一个数据集');
			      return false;
			    }
			     //遍历被选中的checkbox集
			    $($chkBoxes).each(function () { 
			      ids +=$(this).attr('data-id')+",";
			    })
				 if(confirm("删除证件列表，您确定要删除吗？"));
				window.location="<%=basePath%>deleteOther?keys="+ids+"&scanLog="+scanLog; 
			 
			 
		}else if(scanLog == 3){
			 var ids="";
			    var $chkBoxes = $('#table3').find('input:checked');   //找到被选中的checkbox集
			    if ($chkBoxes.length == 0) {         //如果不勾选弹出警告框
			      alert('请至少选择一个数据集');
			      return false;
			    }
			     //遍历被选中的checkbox集
			    $($chkBoxes).each(function () { 
			      ids +=$(this).attr('data-id')+",";
			    })
				  if(confirm("删除奖惩记录，您确定要删除吗？"));
				window.location="<%=basePath%>deleteOther?keys="+ids+"&scanLog="+scanLog; 
		}else if(scanLog == 4){
			 
			 var ids="";
			    var $chkBoxes = $('#table4').find('input:checked');   //找到被选中的checkbox集
			    if ($chkBoxes.length == 0) {         //如果不勾选弹出警告框
			      alert('请至少选择一个数据集');
			      return false;
			    }
			     //遍历被选中的checkbox集
			    $($chkBoxes).each(function () { 
			      ids +=$(this).attr('data-id')+",";
			    })
				 if(confirm("删除考核记录，您确定要删除吗？"));
				window.location="<%=basePath%>deleteOther?keys="+ids+"&scanLog="+scanLog; 
		}else if(scanLog == 5){
			
			 var ids="";
			    var $chkBoxes = $('#table5').find('input:checked');   //找到被选中的checkbox集
			    if ($chkBoxes.length == 0) {         //如果不勾选弹出警告框
			      alert('请至少选择一个数据集');
			      return false;
			    }
			     //遍历被选中的checkbox集
			    $($chkBoxes).each(function () { 
			      ids +=$(this).attr('data-id')+",";
			    })
				  if(confirm("删除学习培训记录，您确定要删除吗？"));
				window.location="<%=basePath%>deleteOther?keys="+ids+"&scanLog="+scanLog; 
		}else if(scanLog == 6){
			 var ids="";
			    var $chkBoxes = $('#table6').find('input:checked');   //找到被选中的checkbox集
			    if ($chkBoxes.length == 0) {         //如果不勾选弹出警告框
			      alert('请至少选择一个数据集');
			      return false;
			    }
			     //遍历被选中的checkbox集
			    $($chkBoxes).each(function () { 
			      ids +=$(this).attr('data-id')+",";
			    })
				   if(confirm("删除等级认定记录，您确定要删除吗？"));
				window.location="<%=basePath%>deleteOther?keys="+ids+"&scanLog="+scanLog; 
			 
		}else if(scanLog == 7){
			 var ids="";
			    var $chkBoxes = $('#table7').find('input:checked');   //找到被选中的checkbox集
			    if ($chkBoxes.length == 0) {         //如果不勾选弹出警告框
			      alert('请至少选择一个数据集');
			      return false;
			    }
			     //遍历被选中的checkbox集
			    $($chkBoxes).each(function () { 
			      ids +=$(this).attr('data-id')+",";
			    })
				   if(confirm("删除工作经历，您确定要删除吗？"));
				window.location="<%=basePath%>deleteOther?keys="+ids+"&scanLog="+scanLog; 
		}
  }
</script>
<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
  </script>
  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 260			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
	var pageNumValue=$("#pageNum").val();
	var selectPages = $('#selectPages').find('a');   
	 $(selectPages).each(function () { 
	      if($(this).attr('id').substr(4,5)==pageNumValue){
	    	  $(this).attr("class","selected");
	      }else{
	    	  $(this).attr("class","");
	      }
	   })
});
Date.prototype.format = function(format) {  
    var o = {  
        "M+" : this.getMonth() + 1, // month  
        "d+" : this.getDate(), // day  
        "h+" : this.getHours(), // hour  
        "m+" : this.getMinutes(), // minute  
        "s+" : this.getSeconds(), // second  
        "q+" : Math.floor((this.getMonth() + 3)/ 3),  
        "S" : this.getMilliseconds()  
    // millisecond  
    }  
  
    if (/(y+)/.test(format)) {  
        format = format.replace(RegExp.$1, (this.getFullYear() + "")  
                .substr(4 - RegExp.$1.length));  
    }  
  
    for ( var k in o) {  
        if (new RegExp("(" + k + ")").test(format)) {  
            format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k]  
                    : ("00" + o[k]).substr(("" + o[k]).length));  
        }  
    }  
    return format;  
}
</script>
</head>
<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">客户经理辅助信息维护</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    <div id="usual1" class="usual"> 
    
    <div class="itab">
    <input type="hidden" name="pageNum" id="pageNum" value="${pageNum }">
    <input type="hidden" name="userId" id="userId" value="${userId}">
  	<ul id="selectPages"> 
    <li><a id="page1"  href="<%=basePath %>clientMgrInfoOther1?pageNum=1&userId=${userId}" class="selected"  target="rightFrame">年度工作业绩</a></li> 
    <li><a id="page2"  href="<%=basePath %>clientMgrInfoOther1?pageNum=2&userId=${userId}" target="rightFrame">证照列表</a></li> 
    <li><a id="page3" href="<%=basePath %>clientMgrInfoOther1?pageNum=3&userId=${userId}">奖惩记录</a></li> 
    <li><a id="page4" href="<%=basePath %>clientMgrInfoOther1?pageNum=4&userId=${userId}">考核记录</a></li> 
    <li><a id="page5" href="<%=basePath %>clientMgrInfoOther1?pageNum=5&userId=${userId}">学习培训记录</a></li> 
    <li><a id="page6" href="<%=basePath %>clientMgrInfoOther1?pageNum=6&userId=${userId}">等级认定记录</a></li> 
    <li><a id="page7"  href="<%=basePath %>clientMgrInfoOther1?pageNum=7&userId=${userId}">工作经历</a></li> 
  	</ul>
    </div>
    <!--年度工作业绩  -->
    <c:if test="${pageNum==1}">
  	<div id="tab1" class="tabson">
  	<form action="clientMgrInfoOther1" method="post">
	    <ul class="seachform">
	    	<li><label></label><input name="pageNum" type="hidden" value="1"></input></li>
		    <li><label>客户经理编号</label><input name="userId" type="text" class="scinput" /></li>
		    <li><label>工作年度</label><input name="cmYear" type="text" class="scinput" /></li>
		    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
	    </ul>
	    </form>
	    <div class="tools">
	    	<ul class="toolbar1">
	        <li><a href="javascript:openWindow(1)"><span><img src="<%=basePath %>images/t01.png" /></span>添加</a></li>
	        <li><a href="javascript:openWindow(2)"><span><img src="<%=basePath %>images/t02.png" /></span>修改</a></li>
	        <li><a href="javascript:oWorkPerformDel(1)" ><span><img src="<%=basePath %>images/t03.png"/></span>删除</a></li>
	        </ul>
	    </div>

	    <table id="table1" class="tablelist">
	    	<thead>
		    	<tr class="tablehead"><td colspan="10">年度工作业绩</td></tr>
		   	</thead>
	    	<thead>
	    	<tr>
	        <th><input name="" type="checkbox" value=""/></th>
	        <th>姓名</th>
	        <th>工作年度</th>
	        <th>工作业绩</th>
	        <th>维护日期</th>
	        <th>维护人</th>
	        </tr>
	        </thead>
	        <tbody>
	         <c:forEach items="${resultList}" var="result">
	        		<tr>
			        <td><input name="cmrkey"  type="checkbox" value="${result.cmrkey}" data-id="${result.cmrkey}" /></td>
			        <td>${result.mgrName}</td>
			        <td>${result.cmYear}</td>
				    <td>${result.cmResult}</td>		
			        <td><fmt:formatDate value="${result.cmModificationDate}" pattern="yyyy-MM-dd hh:mm:ss"></fmt:formatDate></td>
			        <td>${result.modifierName}</td>
			        </tr> 
	        	</c:forEach>
	        </tbody>
	    </table>
	</div>  
	</c:if>
	<c:if test="${pageNum==2}">
    <!--证件列表  -->
  	<div id="tab2" class="tabson">
  	<form action="clientMgrInfoOther1" method="post">
	    <ul class="seachform">
	    	<li><label></label><input name="pageNum" type="hidden" value="2"></input></li>
		    <li><label>客户经理编号</label><input name="userId" type="text" class="scinput" /></li>
		    <li><label>发证时间</label><input name="cmStartDate" type="text" class="scinput" /></li>
		    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
	    </ul>
	 </form>
	    <div class="tools">
	    	<ul class="toolbar1">
	        <li><a href="javascript:openWindow(3)"><span><img src="<%=basePath %>images/t01.png" /></span>添加</a></li>
	        <li><a href="javascript:openWindow(4)"><span><img src="<%=basePath %>images/t02.png" /></span>修改</a></li>
	        <li><a href="javascript:oWorkPerformDel(2)" ><span><img src="<%=basePath %>images/t03.png"/></span>删除</a></li>
	        </ul>
	    </div>
	
	    <table id="table2" class="tablelist">
	    	<thead>
		    	<tr class="tablehead"><td colspan="12">证照列表</td></tr>
		   	</thead>
	    	<thead>
	    	<tr>
	        <th><input name="" type="checkbox" value=""/></th>
	        <th>姓名</th>
	        <th>证书名称</th>
	        <th>证书类型</th>
	        <th>证书编号</th>
	        <th>发证单位</th>
	        <th>发证时间</th>
	        <th>失效时间</th>
	        <th>有效性</th>
	        <th>作废标识</th>
	        <th>维护日期</th>
	        <th>维护人</th>
	        </tr>
	        </thead>
	        <tbody>
	         <c:forEach items="${LLresultList}" var="result">
	        		<tr>
			        <td><input name="llkey"  type="checkbox" value="${result.llkey}" data-id="${result.llkey}" /></td>
			        <td>${result.mgrName}</td>
			        <td>${result.cmCertificateName}</td>
			        <td>${result.cmCertificateType}</td>
				    <td>${result.cmCertificateNo}</td>	
				    <td>${result.cmCertificateUnit}</td>
			        <td><fmt:formatDate value="${result.cmStartDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			         <td><fmt:formatDate value="${result.cnEndDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			       <td>${result.cmPeriod}</td>
			       <td>${result.cmInvalid}</td>
			        <td><fmt:formatDate value="${result.cmModificationDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			        <td>${result.modifierName}</td>
			        
			        </tr> 
	        	</c:forEach>
	        </tbody>
	    </table>
	</div> 
    </c:if>
   <c:if test="${pageNum==3}">
    <!--奖惩记录  -->
  	<div id="tab3" class="tabson">
  	<form action="clientMgrInfoOther1" method="post">
	    <ul class="seachform">
	    	<li><label></label><input name="pageNum" type="hidden" value="3"></input></li>
		    <li><label>客户经理编号</label><input name="userId" type="text" class="scinput" /></li>
		    <li><label>奖惩分类</label><input name="rpTpye" type="text" class="scinput" /></li>
		    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
	    </ul>
	 </form>
	    <div class="tools">
	    	<ul class="toolbar1">
	        <li><a href="javascript:openWindow(5)"><span><img src="<%=basePath %>images/t01.png" /></span>添加</a></li>
	        <li><a href="javascript:openWindow(6)"><span><img src="<%=basePath %>images/t02.png" /></span>修改</a></li>
	        <li><a href="javascript:oWorkPerformDel(3)" ><span><img src="<%=basePath %>images/t03.png"/></span>删除</a></li>
	        </ul>
	    </div>

	    <table id="table3" class="tablelist">
	    	<thead>
		    	<tr class="tablehead"><td colspan="12">奖惩记录</td></tr>
		   	</thead>
	    	<thead>
	    	<tr>
	        <th><input name="" type="checkbox" value=""/></th>
	        <th>姓名</th>
	        <th>奖惩分类</th>
	        <th>奖惩内容</th>
	        <th>生效日期</th>
	        <th>审批单位</th>
	        <th>审批人</th>
	        <th>撤销日期</th>
	        <th>撤销原因</th>
	        <th>附件依据</th>
	        <th>维护日期</th>
	        <th>维护人</th>
	        </tr>
	        </thead>
	        <tbody>
	         <c:forEach items="${RPresultList}" var="result">
	        		<tr>
			        <td><input name="rpkeyId"  type="checkbox" value="${result.rpKey}" data-id="${result.rpKey}" /></td>
			        <td>${result.mgrName}</td>
			        <td>${result.rpTpye}</td>
			        <td>${result.rpSub}</td>
				    <td><fmt:formatDate value="${result.rpEffectiveDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			         <td>${result.rpAunit}</td>
			          <td>${result.rpAperson}</td>
			        <td><fmt:formatDate value="${result.rpRevokeDate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			          <td>${result.rpAreason}</td>
			         <td><a href="<%=basePath %>downLoadFile2?fileName=${result.rpAttachment}&pageNum=3">附件依据下载</a></td>
			        <td><fmt:formatDate value="${result.rpModifyDate}" pattern="yyyy-MM-dd hh:mm:ss"></fmt:formatDate></td>
			         <td>${result.modifierName}</td>
			        </tr> 
	        	</c:forEach>
	        </tbody>
	    </table>
	</div> 
   </c:if>
   <c:if test="${pageNum==4}">
    <!--考核记录  -->
  	<div id="tab4" class="tabson">
  	<form action="clientMgrInfoOther1" method="post">
	    <ul class="seachform">
	    	<li><label></label><input name="pageNum" type="hidden" value="4"></input></li>
		    <li><label>客户经理编号</label><input name="userId" type="text" class="scinput" /></li>
		    <li><label>考核时间</label><input name="gcdata" type="text" class="scinput" /></li>
		    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
	    </ul>
	  </form>  
	    <div class="tools">
	    	<ul class="toolbar1">
	        <li><a href="javascript:openWindow(7)"><span><img src="<%=basePath %>images/t01.png" /></span>添加</a></li>
	        <li><a href="javascript:openWindow(8)"><span><img src="<%=basePath %>images/t02.png" /></span>修改</a></li>
	        <li><a href="javascript:oWorkPerformDel(4)" ><span><img src="<%=basePath %>images/t03.png"/></span>删除</a></li>
	        </ul>
	    </div>

	    <table id="table4" class="tablelist">
	    	<thead>
		    	<tr class="tablehead"><td colspan="12">考核记录</td></tr>
		   	</thead>
	    	<thead>
	    	<tr>
	        <th><input name="" type="checkbox" value=""/></th>
	        <th>姓名</th>
	        <th>考核时间</th>
	        <th>考核内容</th>
	        <th>考核结果</th>
	        <th>考核评价</th>
	        <th>考核单位</th>
	        <th>维护日期</th>
	        <th>维护人</th>
	        </tr>
	        </thead>
	         <tbody>
	         <c:forEach items="${cmassresultList}" var="result">
	        		<tr>
			        <td><input name="clientgckeys"  type="checkbox" value="${result.clientgckey}" data-id="${result.clientgckey}"   /></td>
			        <td>${result.mgrName}</td>
			        <td><fmt:formatDate value="${result.gcdata}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			        <td>${result.gcassub}</td>
				    <td>${result.gcassresult}</td>	
				    <td>${result.gcappraisal}</td>	
				    <td>${result.gcassunit}</td>		
			        <td><fmt:formatDate value="${result.gcmtdate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			        <td>${result.modifierName}</td>
			        </tr> 
	        	</c:forEach>
	        </tbody>
	    </table>
	</div> 
   </c:if>
   <c:if test="${pageNum==5}">
    <!--学员培训记录  -->
  	<div id="tab5" class="tabson">
  	<form action="clientMgrInfoOther1" method="post">
	    <ul class="seachform">
	    	<li><label></label><input name="pageNum" type="hidden" value="5"></input></li>
		    <li><label>客户经理编号</label><input name="userId" type="text" class="scinput" /></li>
		    <li><label>培训时间</label><input name="trdate" type="text" class="scinput" /></li>
		    <li><label>科目</label><input name="trsub" type="text" class="scinput" /></li>
		    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
	    </ul>
	 </form>
	    <div class="tools">
	    	<ul class="toolbar1">
	        <li><a href="javascript:openWindow(9)"><span><img src="<%=basePath %>images/t01.png" /></span>添加</a></li>
	        <li><a href="javascript:openWindow(10)"><span><img src="<%=basePath %>images/t02.png" /></span>修改</a></li>
	        <li><a href="javascript:oWorkPerformDel(5)" ><span><img src="<%=basePath %>images/t03.png"/></span>删除</a></li>
	        </ul>
	    </div>

	    <table id="table5" class="tablelist">
	    	<thead>
		    	<tr class="tablehead"><td colspan="14">学员培训记录</td></tr>
		   	</thead>
	    	<thead>
	    	<tr>
	        <th><input name="" type="checkbox" value=""/></th>
	        <th>姓名</th>
	        <th>培训时间</th>
	        <th>科目</th>
	        <th>培训单位</th>
	        <th>开始日期</th>
	        <th>结束日期</th>
	        <th>学时</th>
	        <th>学分</th>
	        <th>成绩</th>
	        <th>附件依据</th>
	        <th>维护日期</th>
	        <th>维护人</th>
	        </tr>
	        </thead>
	        <tbody>
	         <c:forEach items="${cMltrresultList}" var="result">
	        		<tr>
			        <td><input name="Clienttkeys"  type="checkbox" value="${result.clienttkey}" data-id="${result.clienttkey}" /></td>
			        <td>${result.mgrName}</td>
			        <td><fmt:formatDate value="${result.trdate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			         <td>${result.trsub}</td>
			        <td>${result.trtunit}</td>
				    <td><fmt:formatDate value="${result.startdate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			        <td><fmt:formatDate value="${result.enddate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
				    <td>${result.trknow}</td>	
				    <td>${result.trcredit}</td>	
				    <td>${result.trscore}</td>		
				    <td><a href="<%=basePath %>downLoadFile2?fileName=${result.trattachment}&pageNum=5">附件依据下载</a></td>		
			        <td><fmt:formatDate value="${result.trmodate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			        <td>${result.modifierName}</td>
			        </tr> 
	        	</c:forEach>
	        </tbody>
	    </table>
	</div> 
	</c:if>
	<c:if test="${pageNum==6}">
    <!--等级认定记录  -->
  	<div id="tab6" class="tabson">
  	<form action="clientMgrInfoOther1" method="post">
	    <ul class="seachform">
	    	<li><label></label><input name="pageNum" type="hidden" value="6"></input></li>
		    <li><label>客户经理编号</label><input name="userId" type="text" class="scinput" /></li>
		    <li><label>认定时间</label><input name="hotime" type="text" class="scinput" /></li>
		    <li><label>认定级别</label><input name="holevel" type="text" class="scinput" /></li>
		    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
	    </ul>
	 </form>
	    <div class="tools">
	    	<ul class="toolbar1">
	        <li><a href="javascript:openWindow(11)"><span><img src="<%=basePath %>images/t01.png" /></span>添加</a></li>
	        <li><a href="javascript:openWindow(12)"><span><img src="<%=basePath %>images/t02.png" /></span>修改</a></li>
	        <li><a href="javascript:oWorkPerformDel(6)" ><span><img src="<%=basePath %>images/t03.png"/></span>删除</a></li>
	        </ul>
	    </div>

	    <table id="table6" class="tablelist">
	    	<thead>
		    	<tr class="tablehead"><td colspan="14">等级认定记录</td></tr>
		   	</thead>
	    	<thead>
	    	<tr>
	        <th><input name="" type="checkbox" value=""/></th>
	        <th>姓名</th>
	        <th>认定时间</th>
	        <th>认定级别</th>
	        <th>认定类型</th>
	        <th>附件依据</th>
	        <th>维护日期</th>
	        <th>维护人</th>
	        </tr>
	        </thead>
	       <tbody>
	         <c:forEach items="${cMlevelresultList}" var="result">
	        		<tr>
			        <td><input name="Clientlekeys"  type="checkbox" value="${result.clientlekey}" data-id="${result.clientlekey}"   /></td>
			        <td>${result.mgrName}</td>
			        <td><fmt:formatDate value="${result.hotime}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			        <td>${result.holevel}</td>
				    <td>${result.hotype}</td>		
				    <td><a href="<%=basePath %>downLoadFile2?fileName=${result.hoattachment}&pageNum=6">附件依据下载</a></td>		
			        <td><fmt:formatDate value="${result.hodate}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
			        <td>${result.modifierName}</td>
			        </tr> 
	        	</c:forEach>
	        </tbody>
	    </table>
	</div> 
	</c:if>
	<c:if test="${pageNum==7}">
    <!--工作经历  -->
  	<div id="tab7" class="tabson">
  		<form action="clientMgrInfoOther1"  method="post">
  		    <ul class="seachform">
  		    <li><label></label><input name="pageNum" type="hidden" value="7"></input></li>
		    <li><label>客户经理编号</label><input name="userId" type="text" class="scinput" /></li>
		    <li><label>职务</label><input name="whPosition" type="text" class="scinput" /></li>
		    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
	    </ul>
	    </form>
	    <div class="tools">
	    	<ul class="toolbar1">
	        <li><a href="javascript:openWindow(13)"><span><img src="<%=basePath %>images/t01.png" /></span>添加</a></li>
	        <li><a href="javascript:openWindow(14)"><span><img src="<%=basePath %>images/t02.png" /></span>修改</a></li>
	        <li><a href="javascript:oWorkPerformDel(7)" ><span><img src="<%=basePath %>images/t03.png"/></span>删除</a></li>
	        </ul>
	    </div>

	    <table id="table7" class="tablelist">
	    	<thead>
		    	<tr class="tablehead"><td colspan="14">工作经历</td></tr>
		   	</thead>
	    	<thead>
	    	<tr>
	        <th><input name="" type="checkbox" value=""/></th>
	        <th>姓名</th>
	        <th>任职日期</th>
	        <th>职务</th>
	        <th>单位</th>
	        <th>工作经历</th>
	        <th>附件依据</th>
	        <th>维护日期</th>
	        <th>维护人</th>
	        </tr>
	        </thead>
	        <tbody>
	        <c:forEach items="${workList}" var="work">
		        <tr>
			        <td><input name="workId" type="checkbox" value="${work.whkey }"  ata-id="${result.whkey}"  /></td>
			        <td>${work.mgrName }</td>
			        <td><fmt:formatDate value="${work.whAppDate}" pattern="yyyy-MM-dd"/></td>
			        <td>
			          <c:forEach items="${mgrLevel}" var="level">
					     <c:if test="${level.key eq work.whPosition }">${level.value }</c:if> 	
			          </c:forEach>
			        </td>
			        <td>${work.whUnit }</td>
			        <td>${work.whWork }</td>
			        <td><a href="<%=basePath %>downLoadFile2?fileName=${result.whAttachment}&pageNum=7">附件依据下载</a></td>
			        <td><fmt:formatDate value="${work.whModifyDate}" pattern="yyyy-MM-dd hh:mm:ss"/></td>
			        <td>${work.modifierName }</td>
		        </tr> 
	        </c:forEach>       
	        </tbody>
	    </table>
	</div> 	
	</c:if>   	   

<div id="light1" class="firstScan_main">
    <form action="addCMResults" method="post">
    <div class="formbody">
    <div class="formtitle"><span>添加年度工作业绩</span></div>
    
    <ul class="forminfo">
    <li><label>客户经理编号</label><input name="userId" type="text" class="dfinput" value="${user.userId}"/></li>
    <li><label>工作年度</label><input name="cmYear" id="officeDate" type="text" class="dfinput" value=""/> </li>
    <li><label>工作业绩</label><input name="cmResult" type="text" class="dfinput" value=""/> </li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="添加"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light1')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light2" class="firstScan_main">
    <form action="updateCMResults" method="post">
    <div class="formbody">
    <div class="formtitle"><span>修改年度工作业绩</span></div>
    
    <ul class="forminfo">
    <li><input id="cmrHidden" name="cmrkey" type="hidden" class="dfinput" value=""/></li> 
    <li><label>客户经理编号</label><input id="userId1" name="userId" type="text" class="dfinput" value=""/> </li>
    <li><label>工作年度</label><input id="cmYear1" name="cmYear" type="text" class="dfinput" value=""/> </li>
    <li><label>工作业绩</label><input id="cmResult1" name="cmResult" type="text" class="dfinput" value=""/> </li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="修改"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light2')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light3" class="firstScan_main">
    <form action="addLicenseList" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>添加证件</span></div>
    <ul class="forminfo">
    <li><label>客户经理编号</label><input name="userId" type="text" class="dfinput" value=""/> </li>
    <li><label>证书名称</label><input name="cmCertificateName" type="text" class="dfinput" value=""/> </li>
    <li><label>证书类型</label><div class="vocation"><select class="select1"><option value="0">请选择</option><option value="1" >从业资格证</option><option value="2">岗位证书</option></select></div></li>
    <li><label>证书编号</label><input name="cmCertificateNo" type="text" class="dfinput" value=""/> </li>
    <li><label>发证单位</label><input name="cmCertificateUnit" type="text" class="dfinput" value=""/> </li>
    <li><label>发证时间</label><input name="cmStartDate" type="text" class="dfinput" value=""/> </li>
    <li><label>失效时间</label><input name="cnEndDate" type="text" class="dfinput" value=""/> </li>
    <li><label>备注</label><input name="cmRemake" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="添加"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light3')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light4" class="firstScan_main">
    <form action="updateLicenseList" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>修改证件</span></div>
    
    <ul class="forminfo">
    <li><input id="llHidden" name="llkey" type="hidden" class="dfinput" value=""/> </li>
    <li><label>客户经理编号</label><input  id="userId2"  name="userId" type="text" class="dfinput" value=""/> </li>
    <li><label>证书名称</label><input id="cmCertificateName2" name="cmCertificateName" type="text" class="dfinput" value=""/> </li>
    <li><label>证书类型</label><div class="vocation"><select class="select1"><option value="0">请选择</option><option value="1" selected>从业资格证</option><option value="2">岗位证书</option></select></div></li>
    <li><label>证书编号</label><input id="cmCertificateNo2" name="cmCertificateNo" type="text" class="dfinput" value=""/> </li>
    <li><label>发证单位</label><input id="cmCertificateUnit2" name="cmCertificateUnit" type="text" class="dfinput" value=""/> </li>
    <li><label>发证时间</label><input id="cmStartDate2" name="cmStartDate" type="text" class="dfinput" value=""/> </li>
    <li><label>失效时间</label><input  id="cnEndDate2" name="cnEndDate" type="text" class="dfinput" value=""/> </li>
    <li><label>备注</label><input id="cmRemake2" name="cmRemake" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="修改"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light4')"/></li>
    </ul>
    </div>
    </form>
</div>

<div id="light5" class="firstScan_main">
    <form action="addRewardPunishment" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>添加奖惩记录</span></div>
    
    <ul class="forminfo">
    <li><label>客户经理编号</label><input name="userId" type="text" class="dfinput" value=""/> </li>
    <li><label>奖惩分类</label><input name="rpTpye" type="text" class="dfinput" value=""/> </li>
    <li><label>奖惩内容</label><input name="rpSub" type="text" class="dfinput" value=""/> </li>
    <li><label>生效日期</label><input name="rpEffectiveDate" type="text" class="dfinput" value=""/> </li>
    <li><label>审批单位</label><input name="rpAunit" type="text" class="dfinput" value=""/> </li>
    <li><label>审批人</label><input name="rpAperson" type="text" class="dfinput" value=""/> </li>
    <li><label>撤销日期</label><input name="rpRevokeDate" type="text" class="dfinput" value=""/> </li>
    <li><label>撤销原因</label><input name="rpAreason" type="text" class="dfinput" value=""/> </li>
    <li><label>备注</label><input name="rpRemark" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="添加"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light5')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light6" class="firstScan_main">
    <form action="updateRewardPunishment" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>修改奖惩记录</span></div>
    
    <ul class="forminfo">
    <input id="rpHidden" name="rpKey" type="hidden" class="dfinput" value=""/> 
    <li><label>客户经理编号</label><input id="userId6" name="userId" type="text" class="dfinput" value=""/> </li>
    <li><label>奖惩分类</label><input id="rpTpye" name="rpTpye" type="text" class="dfinput" value=""/> </li>
    <li><label>奖惩内容</label><input id="rpSub" name="rpSub" type="text" class="dfinput" value=""/> </li>
    <li><label>生效日期</label><input id="rpEffectiveDate" name="rpEffectiveDate" type="text" class="dfinput" value=""/> </li>
    <li><label>审批单位</label><input id="rpAunit" name="rpAunit" type="text" class="dfinput" value=""/> </li>
    <li><label>审批人</label><input id="rpAperson" name="rpAperson" type="text" class="dfinput" value=""/> </li>
    <li><label>撤销日期</label><input id="rpRevokeDate" name="rpRevokeDate" type="text" class="dfinput" value=""/> </li>
    <li><label>撤销原因</label><input id="rpAreason" name="rpAreason" type="text" class="dfinput" value=""/> </li>
    <li><label>备注</label><input id="rpRemark" name="rpRemark" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input  name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="修改"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light6')"/></li>
    </ul>
    </div> 
    </form>
</div>
<div id="light7" class="firstScan_main">
    <form action="addCMass" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>添加考核记录</span></div>
    
    <ul class="forminfo">
    <li><label>客户经理编号</label><input name="userId" type="text" class="dfinput" value=""/> </li>
    <li><label>考核时间</label><input name="gcdata" type="text" class="dfinput" value=""/> </li>
    <li><label>考核内容</label><input name="gcassub" type="text" class="dfinput" value=""/> </li>
    <li><label>考核结果</label><input name="gcassresult" type="text" class="dfinput" value=""/> </li>
    <li><label>考核评价</label><input name="gcappraisal" type="text" class="dfinput" value=""/> </li>
    <li><label>考核单位</label><input name="gcassunit" type="text" class="dfinput" value=""/> </li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="添加"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light7')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light8" class="firstScan_main">
    <form action="updateCMass" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>修改考核记录</span></div>
    
    <ul class="forminfo">
     <input id="cMassHidden" name="Clientgckey" type="hidden" class="dfinput" value=""/> 
    <li><label>客户经理编号</label><input id="userId4" name="userId" type="text" class="dfinput" value=""/> </li>
    <li><label>考核时间</label><input id="gcdata4"  name="gcdata" type="text" class="dfinput" value=""/> </li>
    <li><label>考核内容</label><input id="gcassub4"  name="gcassub" type="text" class="dfinput" value=""/> </li>
    <li><label>考核结果</label><input id="gcassresult4"  name="gcassresult" type="text" class="dfinput" value=""/> </li>
    <li><label>考核评价</label><input id="gcappraisal4"  name="gcappraisal" type="text" class="dfinput" value=""/> </li>
    <li><label>考核单位</label><input id="gcassunit4"  name="gcassunit" type="text" class="dfinput" value=""/> </li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="修改"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light8')"/></li>
    </ul>
    </div>
    </form>
</div>	
<div id="light9" class="firstScan_main">
    <form action="addCMltr" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>添加学习培训记录</span></div>
    
    <ul class="forminfo">
    <li><label>客户经理编号</label><input name="uesrId" type="text" class="dfinput" value=""/> </li>
    <li><label>培训时间</label><input name="trdate" type="text" class="dfinput" value=""/> </li>
    <li><label>科目</label><input name="trsub" type="text" class="dfinput" value=""/> </li>
    <li><label>培训单位</label><input name="trtunit" type="text" class="dfinput" value=""/> </li>
    <li><label>开始日期</label><input name="startdate" type="text" class="dfinput" value=""/> </li>
    <li><label>结束日期</label><input name="enddate" type="text" class="dfinput" value=""/> </li>
    <li><label>学时</label><input name="trknow" type="text" class="dfinput" value=""/> </li>
    <li><label>学分</label><input name="trcredit" type="text" class="dfinput" value=""/> </li>
    <li><label>成绩</label><input name="trscore" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="添加"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light9')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light10" class="firstScan_main">
    <form action="updateCMltr" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>修改学习培训记录</span></div>
    
    <ul class="forminfo">
    <input id="cMltrHidden" name="Clienttkey" type="hidden" class="dfinput" value=""/> 
    <li><label>客户经理编号</label><input id="uesrId5" name="uesrId" type="text" class="dfinput" value=""/> </li>
    <li><label>培训时间</label><input id="trdate5"  name="trdate" type="text" class="dfinput" value=""/> </li>
    <li><label>科目</label><input id="trsub5"  name="trsub" type="text" class="dfinput" value=""/> </li>
    <li><label>培训单位</label><input id="trtunit5"  name="trtunit" type="text" class="dfinput" value=""/> </li>
    <li><label>开始日期</label><input id="startdate5"  name="startdate" type="text" class="dfinput" value=""/> </li>
    <li><label>结束日期</label><input id="enddate5"  name="enddate" type="text" class="dfinput" value=""/> </li>
    <li><label>学时</label><input id="trknow5"  name="trknow" type="text" class="dfinput" value=""/> </li>
    <li><label>学分</label><input id="trcredit5"  name="trcredit" type="text" class="dfinput" value=""/> </li>
    <li><label>成绩</label><input id="trscore5"  name="trscore" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="修改"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light10')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light11" class="firstScan_main">
    <form action="addCMlevel" method="post" enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>添加等级认定记录</span></div>
    
    <ul class="forminfo">
    <li><label>客户经理编号</label><input name="uesrId" type="text" class="dfinput" value=""/> </li>
    <li><label>认定时间</label><input name="hotime" type="text" class="dfinput" value=""/> </li>
    <li><label>认定级别</label><input name="holevel" type="text" class="dfinput" value=""/> </li>
    <li><label>认定类型</label><input name="hotype" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="添加"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light11')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light12" class="firstScan_main">
    <form action="updateCMlevel" method="post">
    <div class="formbody">
    <div class="formtitle"><span>修改等级认定记录</span></div>
    
    <ul class="forminfo">
    <input id="cMlevelHidden" name="Clientlekey" type="hidden" class="dfinput" value=""/>
    <li><label>客户经理编号</label><input id="uesrId6" name="uesrId" type="text" class="dfinput" value=""/> </li>
    <li><label>认定时间</label><input id="hotime6"  name="hotime" type="text" class="dfinput" value=""/> </li>
    <li><label>认定级别</label><input id="holevel6"  name="holevel" type="text" class="dfinput" value=""/> </li>
    <li><label>认定类型</label><input id="hotype6"  name="hotype" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="修改"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light12')"/></li>
    </ul>
    </div>
    </form>
</div>
<div id="light13" class="firstScan_main">
    <form action="addWorkHistory" method="post"  enctype="multipart/form-data">
    <div class="formbody">
    <div class="formtitle"><span>添加工作经历</span></div>
    
    <ul class="forminfo">
    <li><label>客户经理编号</label><input name="userId" type="text" class="dfinput" value=""/> </li>
    <li><label>任职日期</label><input name="whAppDate" type="text" class="dfinput" value=""/> </li>
    <li><label>职务</label><input name="whPosition" type="text" class="dfinput" value=""/> </li>
    <li><label>单位</label><input name="whUnit" type="text" class="dfinput" value=""/> </li>
    <li><label>工作经历</label><input name="whWork" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="添加"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light13')"/></li>
    </ul>
    </div>
    </form>
</div> 
<div id="light14" class="firstScan_main">
    <form action="<%=basePath %>updateWorkHistory" method="post" enctype="multipart/form-data">
    <input type="hidden" name="cmKey" id="workCmKey"  value="">
    <input type="hidden" name="modifier" value="${user.userId }">
    <input type="hidden" name="cmAttach" id="workHistAttach" value="">
    <div class="formbody">
    <div class="formtitle"><span>修改工作经历</span></div>
    <ul class="forminfo">
    <input id="workHidden" name="whkey" type="hidden" class="dfinput" value=""/> 
    <li><label>客户经理编号</label><input name="userId" id="workCmId" type="text" class="dfinput" value="" readonly/> </li>
    <li><label>任职日期</label><input name="whAppDate" id="workofficeDate" type="text" class="dfinput" value=""/> </li>
    <li><label>职务</label> 
      <div class="vocation">
	     <select class="select1" name="whPosition" id="workcmPostion">
			        <c:forEach items="${mgrLevel}" var="level">
							<option value="${level.key }" >${level.value }</option>		
					</c:forEach> 
	      </select>
	  </div>
     </li>
    <li><label>单位</label><input name="whUnit" id="workUnit" type="text" class="dfinput" value=""/> </li>
    <li><label>工作经历</label><input name="whWork" id="workWork" type="text" class="dfinput" value=""/> </li>
    <li><label>附件上传</label><input name="upload" id="workAttach" type="file" class="dfselect1"/></li>
    <li>&nbsp;&nbsp;<input name="" type="submit" class="btn" value="修改"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" class="btn" value="关闭" onclick="closeWindow('light14')"/></li>
    </ul>
    </div>
    </form>
</div>   
	</div> 
 
	<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
        
    </div>
</body>



<script language="javascript">
	function openWindow(scanLog) {
		alert("scanLog="+scanLog);
		if (scanLog == 1) {
			document.getElementById('light1').style.display = 'block';
		}else if(scanLog == 2){
			
			//document.getElementById('light2').style.display = 'block';
			var objs=document.getElementsByName("cmrkey");//获取复选框的工作经历key
			var selectObjs=[];
			for(var i=0;i<objs.length;i++){
				if(objs[i].checked){		
					selectObjs.push(objs[i]);
				};
			}
			//只允许有一个选中
			if(selectObjs.length==1){
				document.getElementById('cmrHidden').value=selectObjs[0].value;
				document.getElementById('light2').style.display = 'block';
			}else if(selectObjs.length==0){
				alert("必须选择一项纪录修改!");
			}else{
				alert("只能选择一项纪录修改!");
			}
			$.ajax({
		         //发送请求URL，可使用相对路径也可使用绝对路径
		         url:"<%=basePath%>/modifyCMResults?cmrkey="+selectObjs[0].value,
		         //发送方式为GET，也可为POST，需要与后台对应
		         type:"GET",
		         //设置接收格式为JSON
		         dataType:"json",
		         //编码设置
		         contentType:"application/json;charset=utf-8",
		         //后台返回成功后处理数据，data为后台返回的json格式数据
		         success:function(data){
		        	 if(data.length>0){
		        		 var Datetemp= new Date(data[0].officeDate);// 这里必须是整数，毫秒  
	                     var dateStr = Datetemp.format("yyyy-MM-dd"); 
		        		 $("#cmrHidden").val(data[0].cmrkey);
		        		 $("#userId1").val(data[0].userId);
		        		 $("#cmYear1").val(data[0].cmYear);
		        		 $("#cmResult1").val(data[0].cmResult);
		        	 }
		         }
		   });
			
			
		}else if(scanLog == 3){
			document.getElementById('light3').style.display = 'block';
		
		
		}else if(scanLog == 4){
			//document.getElementById('light4').style.display = 'block';
			var objs=document.getElementsByName("llkey");//获取复选框的工作经历key
			var selectObjs=[];
			for(var i=0;i<objs.length;i++){
				if(objs[i].checked){		
					selectObjs.push(objs[i]);
				};
			}
			//只允许有一个选中
			if(selectObjs.length==1){
				document.getElementById('llHidden').value=selectObjs[0].value;
				document.getElementById('light4').style.display = 'block';
			}else if(selectObjs.length==0){
				alert("必须选择一项纪录修改!");
			}else{
				alert("只能选择一项纪录修改!");
			}
			$.ajax({
		         //发送请求URL，可使用相对路径也可使用绝对路径
		         url:"<%=basePath%>/modifyLicenseList?llkey="+selectObjs[0].value,
		         //发送方式为GET，也可为POST，需要与后台对应
		         type:"GET",
		         //设置接收格式为JSON
		         dataType:"json",
		         //编码设置
		         contentType:"application/json;charset=utf-8",
		         //后台返回成功后处理数据，data为后台返回的json格式数据
		         success:function(data){
		        	 if(data.length>0){
		        		 var Datetemp= new Date(data[0].officeDate);// 这里必须是整数，毫秒  
	                     var dateStr = Datetemp.format("yyyy-MM-dd"); 
		        		 $("#llkey2").val(data[0].llkey);
		        		 $("#userId2").val(data[0].userId);
		        		 $("#cmCertificateName2").val(data[0].cmCertificateName);
		        		 $("#cmCertificateType2").val(data[0].cmCertificateType);
		        		 $("#cmCertificateNo2").val(data[0].cmCertificateNo);
		        		 $("#cmCertificateUnit2").val(data[0].cmCertificateUnit);
		        		 $("#cmStartDate2").val((new Date(data[0].cmStartDate)).format("yyyy-MM-dd"));
		        		 $("#cnEndDate2").val((new Date(data[0].cnEndDate)).format("yyyy-MM-dd"));
		        		 $("#cmRemake2").val(data[0].cmRemake);
		        	 }
		         }
		   });
		}else if(scanLog == 5){
			document.getElementById('light5').style.display = 'block';
		}else if(scanLog == 6){
			//document.getElementById('light6').style.display = 'block';
			var objs=document.getElementsByName("rpkeyId");//获取复选框的工作经历key
			var selectObjs=[];
			for(var i=0;i<objs.length;i++){
				if(objs[i].checked){		
					selectObjs.push(objs[i]);
				};
			}
			//只允许有一个选中
			if(selectObjs.length==1){
				document.getElementById('rpHidden').value=selectObjs[0].value;
				document.getElementById('light6').style.display = 'block';
			}else if(selectObjs.length==0){
				alert("必须选择一项纪录修改!");
			}else{
				alert("只能选择一项纪录修改!");
			}
			$.ajax({
		         //发送请求URL，可使用相对路径也可使用绝对路径
		         url:"<%=basePath%>/modifyRewardPunishment?rpKey="+selectObjs[0].value,
		         //发送方式为GET，也可为POST，需要与后台对应
		         type:"GET",
		         //设置接收格式为JSON
		         dataType:"json",
		         //编码设置
		         contentType:"application/json;charset=utf-8",
		         //后台返回成功后处理数据，data为后台返回的json格式数据
		         success:function(data){
		        	 if(data.length>0){
		        		 var Datetemp= new Date(data[0].officeDate);// 这里必须是整数，毫秒  
	                     var dateStr = Datetemp.format("yyyy-MM-dd"); 
		        		 $("#rpKey").val(data[0].rpKey);
		        		 $("#userId6").val(data[0].userId);
		        		 $("#rpTpye").val(data[0].rpTpye);
		        		 $("#rpSub").val(data[0].rpSub);
		        		 $("#rpEffectiveDate").val((new Date(data[0].rpEffectiveDate)).format("yyyy-MM-dd"));
		        		 $('#rpAunit').val(data[0].rpAunit);
		        		// $("#workcmPostion").val(data[0].cmPostion).attr("selected",true);
		        		 $("#rpAperson").val(data[0].rpAperson);
		        		 $("#rpRevokeDate").val((new Date(data[0].rpRevokeDate)).format("yyyy-MM-dd"));
		        		 $("#rpAreason").text(data[0].rpAreason);
		        		 $("#rpRemark").val(data[0].rpRemark);
		        		 $("#rpModifyDate").val((new Date(data[0].rpModifyDate)).format("yyyy-MM-dd"));
		        		 $("#rpModifyPerson").val(data[0].rpModifyPersons);
		        	 }
		         }
		   });
			
			
		}else if(scanLog == 7){
			document.getElementById('light7').style.display = 'block';
		}else if(scanLog == 8){
			//document.getElementById('light8').style.display = 'block';
			var objs=document.getElementsByName("clientgckeys");//获取复选框的工作经历key
			var selectObjs=[];
			for(var i=0;i<objs.length;i++){
				if(objs[i].checked){		
					selectObjs.push(objs[i]);
				};
			}
			//只允许有一个选中
			if(selectObjs.length==1){
				document.getElementById('cMassHidden').value=selectObjs[0].value;
				document.getElementById('light8').style.display = 'block';
			}else if(selectObjs.length==0){
				alert("必须选择一项纪录修改!");
			}else{
				alert("只能选择一项纪录修改!");
			}
			$.ajax({
		         //发送请求URL，可使用相对路径也可使用绝对路径
		         url:"<%=basePath%>/modifyCMass?clientgckey="+selectObjs[0].value,
		         //发送方式为GET，也可为POST，需要与后台对应
		         type:"GET",
		         //设置接收格式为JSON
		         dataType:"json",
		         //编码设置
		         contentType:"application/json;charset=utf-8",
		         //后台返回成功后处理数据，data为后台返回的json格式数据
		         success:function(data){
		        	 if(data.length>0){
		        		 var Datetemp= new Date(data[0].officeDate);// 这里必须是整数，毫秒  
	                     var dateStr = Datetemp.format("yyyy-MM-dd"); 
		        		 $("#cMassHidden").val(data[0].clientgckey);
		        		 $("#userId4").val(data[0].userId);
		        		 $("#gcdata4").val((new Date(data[0].gcdata)).format("yyyy-MM-dd"));
		        		 $("#gcassub4").val(data[0].gcassub);
		        		 $("#gcassresult4").val(data[0].gcassresult);
		        		 $("#gcappraisal4").val(data[0].gcappraisal);
		        		 $('#gcassunit4').val(data[0].gcassunit);
		        	 }
		         }
		   });
			
			
		}else if(scanLog == 9){
			document.getElementById('light9').style.display = 'block';
		}else if(scanLog == 10){
			//document.getElementById('light10').style.display = 'block';
			var objs=document.getElementsByName("Clienttkeys");//获取复选框的工作经历key
			var selectObjs=[];
			for(var i=0;i<objs.length;i++){
				if(objs[i].checked){		
					selectObjs.push(objs[i]);
				};
			}
			//只允许有一个选中
			if(selectObjs.length==1){
				document.getElementById('cMltrHidden').value=selectObjs[0].value;
				document.getElementById('light10').style.display = 'block';
			}else if(selectObjs.length==0){
				alert("必须选择一项纪录修改!");
			}else{
				alert("只能选择一项纪录修改!");
			}
			$.ajax({
		         //发送请求URL，可使用相对路径也可使用绝对路径
		         url:"<%=basePath%>/modifyCMltr?clienttkey="+selectObjs[0].value,
		         //发送方式为GET，也可为POST，需要与后台对应
		         type:"GET",
		         //设置接收格式为JSON
		         dataType:"json",
		         //编码设置
		         contentType:"application/json;charset=utf-8",
		         //后台返回成功后处理数据，data为后台返回的json格式数据
		         success:function(data){
		        	 if(data.length>0){
		        		 $("#cMltrHidden").val(data[0].clienttkey);
		        		 $("#uesrId5").val(data[0].uesrId);
		        		 $("#trdate5").val((new Date(data[0].trdate)).format("yyyy-MM-dd"));
		        		 $("#trsub5").val(data[0].trsub);
		        		 $("#trtunit5").val(data[0].trtunit);
		        		 $("#startdate5").val((new Date(data[0].startdate)).format("yyyy-MM-dd"));
		        		 $("#enddate5").val((new Date(data[0].enddate)).format("yyyy-MM-dd"));
		        		 $("#trknow5").val(data[0].trknow);
		        		 $("#trcredit5").val(data[0].trcredit);
		        		 $("#trscore5").val(data[0].trscore);
		        	 }
		         }
		   });
		
		
		
		}else if(scanLog == 11){
			document.getElementById('light11').style.display = 'block';
		}else if(scanLog == 12){
			//document.getElementById('light12').style.display = 'block';
			var objs=document.getElementsByName("Clientlekeys");//获取复选框的工作经历key
			var selectObjs=[];
			for(var i=0;i<objs.length;i++){
				if(objs[i].checked){		
					selectObjs.push(objs[i]);
				};
			}
			//只允许有一个选中
			if(selectObjs.length==1){
				document.getElementById('cMlevelHidden').value=selectObjs[0].value;
				document.getElementById('light12').style.display = 'block';
			}else if(selectObjs.length==0){
				alert("必须选择一项纪录修改!");
			}else{
				alert("只能选择一项纪录修改!");
			}
			$.ajax({
		         //发送请求URL，可使用相对路径也可使用绝对路径
		         url:"<%=basePath%>/modifyCMlevel?clientlekey="+selectObjs[0].value,
		         //发送方式为GET，也可为POST，需要与后台对应
		         type:"GET",
		         //设置接收格式为JSON
		         dataType:"json",
		         //编码设置
		         contentType:"application/json;charset=utf-8",
		         //后台返回成功后处理数据，data为后台返回的json格式数据
		         success:function(data){
		        	 if(data.length>0){
		        		 $("#cMlevelHidden").val(data[0].clientlekey);
		        		 $("#uesrId6").val(data[0].uesrId);
		        		 $("#holevel6").val(data[0].holevel);
		        		 $("#hotype6").val(data[0].hotype);
		        		 $("#hotime6").val((new Date(data[0].hotime)).format("yyyy-MM-dd"));
		        	 }
		         }
		   });
			
			
		}else if(scanLog == 13){
			document.getElementById('light13').style.display = 'block';
		}else if(scanLog == 14){
			//document.getElementById('light14').style.display = 'block';
			var objs=document.getElementsByName("workId");//获取复选框的工作经历key
			var selectObjs=[];
			for(var i=0;i<objs.length;i++){
				if(objs[i].checked){		
					selectObjs.push(objs[i]);
				};
			}
			//只允许有一个选中
			if(selectObjs.length==1){
				document.getElementById('workHidden').value=selectObjs[0].value;
				document.getElementById('light14').style.display = 'block';
			}else if(selectObjs.length==0){
				alert("必须选择一项纪录修改!");
			}else{
				alert("只能选择一项纪录修改!");
			}
			$.ajax({
		         //发送请求URL，可使用相对路径也可使用绝对路径
		         url:"<%=basePath%>/modifyWork?cmKey="+selectObjs[0].value,
		         //发送方式为GET，也可为POST，需要与后台对应
		         type:"GET",
		         //设置接收格式为JSON
		         dataType:"json",
		         //编码设置
		         contentType:"application/json;charset=utf-8",
		         //后台返回成功后处理数据，data为后台返回的json格式数据
		         success:function(data){
		        	 if(data.length>0){
		        		 $("#workCmKey").val(data[0].cmKey);
		        		 $("#workCmId").val(data[0].userId);
		        		 $("#workofficeDate").val((new Date(data[0].workofficeDate)).format("yyyy-MM-dd"));
		        		 $("#workcmPostion").val(data[0].cmPostion);
		        		 //$("#workcmPostion option[value='"+data[0].cmPostion+"']").prop("selected",true);
		        		 //$('#workcmPostion').find("option[value="+data[0].cmPostion+"]").attr("selected",true);
		        		 $('#workcmPostion').find("option[value='02']").attr("selected",true);
		        		// $("#workcmPostion").val(data[0].cmPostion).attr("selected",true);
		        		 $("#workUnit").val(data[0].cmUnit);
		        		 $("#workWork").val(data[0].cmWork);
		        		 $("#workAttach").text(data[0].cmAttach);
		        		 $("#workHistAttach").val(data[0].cmAttach);
		        	 }
		         }
		   });
		}
	}
	function closeWindow(id) {
		document.getElementById(id).style.display = 'none';
	}
</script>
</html>